﻿using LeonardoNews.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace LeonardoNews.Server.Models
{
    [DataContract]
    public class CommentModel
    {
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        public virtual User User { get; set; }

        [DataMember]
        public virtual ArticleModel Article { get; set; }

        [DataMember]
        public string Text { get; set; }

        [DataMember]
        public virtual Comment ParentComment { get; set; }
    }
}